import request from '@/utils/request'

export function rechargeList() {
  return request({
    url: '/recharge/list',
    method: 'get'
  })
}

export function showRechargeList(query) {
  return request({
    url: '/recharge/show',
    method: 'get',
    params: query
  })
}

export function saveOrUpdateRecharge(data) {
  return request({
    url: '/recharge/save',
    method: 'post',
    data
  })
}

export function deleteRecharge(rechargeId) {
  return request({
    url: '/recharge/remove',
    method: 'get',
    params: { 'rechargeId': rechargeId }
  })
}
